GetIntModemInfo
You can use theGetIntModemInfo
function to find out information about the internal modem.
unsigned long GetIntModemInfo();DESCRIPTION
TheGetIntModemInfo
function returns a 32-bit field containing information that describes the features and state of the internal modem. It can be called whether or not a modem is installed and will return the correct information.If a bit is set, that feature or state is supported or selected; if the bit is cleared, that feature is not supported or selected. Undefined bits are reserved by Apple for future expansion.
Bits 15-31 contain the modem type, which can have one of the following values:
Value Meaning -1 Modem is installed but type not recognized. 0 No modem is installed. 1 Modem is a serial modem. 2 Modem is a PowerBook Duo-style Express Modem. 3 Modem is a PowerBook 160/180-style Express Modem. ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch
($A09E). The selector value forGetIntModemInfo
is 14 ($0E) in the low word of register D0. The bit field to set is passed in the high word of register D0.